package io.xiyou.account;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;

@SpringBootApplication(scanBasePackages = {
        "io.xiyou.account",
        "io.xiyou.core",
},
        exclude = MongoAutoConfiguration.class)
@MapperScan("io.xiyou.account.dao.mapper")
@ServletComponentScan(basePackages = {"io.xiyou.core"})
@EnableCaching
public class AccountApplication {

    public static void main(String[] args) {
        SpringApplication.run(AccountApplication.class, args);
    }

}
